<!DOCTYPE html>
<html lang="zh-CN">
    <head>
        <meta charset="UTF-8" />
        <title>13_定位-绝对定位-特点2-绝对定位元素相对的是第一个非static的父元素</title>
        <style>
            #outer {
                position: relative;
                width: 500px;
                height: 500px;
                border: 30px solid red;
            }

            #inner {
                position: absolute;
                left: 600px;
                top: 600px;
                width: 100px;
                height: 100px;
                background-color: aqua;
            }
        </style>
    
    
    </head>
    <body>
        <div id="outer">
            <div id="inner"></div>
        </div>
    </body>
</html>